package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.productpricegroup.ProductCustomerGroupListRequest;
import com.mes.cloud.entity.ProductCustomerGroup;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;
import java.util.Set;

/**
 * 产品客户组
 *
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-09-24 16:08:41
 */
public interface ProductCustomerGroupDao  extends SelectByIdsMapper<ProductCustomerGroup>, Mapper<ProductCustomerGroup>{

    /**
     * 获取客户组列表
     * @param productCustomerGroupListRequestParam
     * @return
     */
    List<ProductCustomerGroup> list(ProductCustomerGroupListRequest productCustomerGroupListRequestParam);

    /**
     * 批量启用禁用
     * @param enableFlag
     * @param ids
     * @param updateDateStr
     * @param
     * @return
     */
    int batchEnableFlag(@Param("enableFlag") String enableFlag, @Param("ids") Set<String> ids,
                        @Param("updateDateStr") String updateDateStr,
                        @Param("employeeNo") String employeeNo,
                        @Param("employeeName") String employeeName);

    /**
     * @Author ysd
     * @Description 批量导入
     * @Date 15:37 2019/10/23
     **/
    int batchInsert(List<ProductCustomerGroup> result);

    /**
     * @Author ysd
     * @Description 批量更新
     * @Date 11:19 2019/10/26
     **/
    int batchUpdate(List<ProductCustomerGroup> result);

    /**
     * @Author ysd
     * @Description 客户组详情
     * @Date 15:37 2019/10/23
     **/
    ProductCustomerGroup findCustomerGroupDetails(@Param("code") String code);

    /**
     * @Author ysd
     * @Description 客户组详情
     * @Date 15:37 2019/10/23
     **/
    List<String> findCustomerGroupList(@Param("list") Set<String> code);

}
